package com.yl.project.lvyou.replies.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yl.framework.aspectj.lang.annotation.Excel;
import javax.persistence.*;
import com.yl.framework.web.domain.BaseEntity;

/**
 * 评论回复对象 scenic_comment_replies
 * 
 * @author yl
 * @date 2025-03-14
 */
@Table(name="scenic_comment_replies")
public class ScenicCommentReplies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回复ID */
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /** 主评论ID */
    @Excel(name = "主评论ID")

    @Column(name = "comment_id")
    private Long commentId;
    /** 回复用户ID */
    @Excel(name = "回复用户ID")

    @Column(name = "user_id")
    private Long userId;
    /** 被回复用户ID */
    @Excel(name = "被回复用户ID")

    @Column(name = "reply_to_user_id")
    private Long replyToUserId;
    /** 回复内容 */
    @Excel(name = "回复内容")

    @Column(name = "content")
    private String content;
    /** 状态：0-禁用，1-正常 */
    @Excel(name = "状态：0-禁用，1-正常")

    @Column(name = "status")
    private Integer status;

    @Column(name = "userName")
    private String userName;

    @Column(name = "userAvatar")
    private String userAvatar;

    @Column(name = "replyToUserName")
    private String replyToUserName;

    private Long replyCount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReplyToUserId(Long replyToUserId) 
    {
        this.replyToUserId = replyToUserId;
    }

    public Long getReplyToUserId() 
    {
        return replyToUserId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getReplyToUserName() {
        return replyToUserName;
    }

    public void setReplyToUserName(String replyToUserName) {
        this.replyToUserName = replyToUserName;
    }

    public Long getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Long replyCount) {
        this.replyCount = replyCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("replyToUserId", getReplyToUserId())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
